FROM java:8
EXPOSE 80

VOLUME /tmp
ADD admin.jar /opt/admin/admin.jar

ENV JAVA_OPTS=""
ENV TZ=Asia/Shanghai
ENV LANG="zh_CN.UTF-8"
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \
&& echo "export LC_ALL=zh_CN.UTF-8"  >>  /etc/profile

WORKDIR /opt/admin/
ENTRYPOINT ["sh", "-c", "java $JAVA_OPTS  -Djava.security.egd=file:/dev/./urandom -jar admin.jar"]